﻿<Window x:Class="PizzaService.View.LoginWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Login" Height="400" Width="400" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" KeyDown="LoginBoxes_KeyDown">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Styles\Styles.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Window.Background>
        <ImageBrush ImageSource="../Images/LoginWindow_Background.jpg" Stretch="UniformToFill" />
    </Window.Background> 
        <Grid Background="Transparent">
        <TextBox Name="TxtUser" Text="{Binding User, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Margin="170,75,0,0" TextWrapping="Wrap"  VerticalAlignment="Top" KeyDown="LoginBoxes_KeyDown" Style="{StaticResource CustomTextBoxStyle}"/>
        <Button Name ="BtnLogin" Content="Login" HorizontalAlignment="Left" Margin="170,285,0,0" VerticalAlignment="Top" Click="LoginButton_Click" Style="{StaticResource CustomButtonStyle}"/>
        <TextBlock Text="User:" HorizontalAlignment="Left" Margin="88,75,0,0" VerticalAlignment="Top" FontSize="14" Foreground="White"/>
        <TextBlock Text="Password:" HorizontalAlignment="Left" Margin="88,133,0,0" VerticalAlignment="Top" FontSize="14" Foreground="White"/>
        <PasswordBox Name="PwdBox" HorizontalAlignment="Left" Margin="170,133,0,0" VerticalAlignment="Top" Width="130" Height="25" KeyDown="LoginBoxes_KeyDown" Background="{x:Null}" BorderBrush="#FFF5B66A" FontSize="14" Foreground="White"/>
        <TextBox Name="TxtServer" Text="{Binding Server, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Margin="170,190,0,0" TextWrapping="Wrap" VerticalAlignment="Top" KeyDown="LoginBoxes_KeyDown" Style="{StaticResource CustomTextBoxStyle}"/>
        <TextBlock Text="Server:" HorizontalAlignment="Left" Margin="88,187,0,0" VerticalAlignment="Top" FontSize="14" Foreground="White"/>
        <TextBox Name="TxtDatabase" Text="{Binding Database, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Margin="170,241,0,0" TextWrapping="Wrap" VerticalAlignment="Top" KeyDown="LoginBoxes_KeyDown" Style="{StaticResource CustomTextBoxStyle}"/>
        <TextBlock Text="Datenbank:" HorizontalAlignment="Left" Margin="88,238,0,0" VerticalAlignment="Top" FontSize="14" Foreground="White"/>

    </Grid>
</Window>
